﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<TITLE> <? echo $title;?> </TITLE>
<base href="<?php echo base_url() ?>" />
<LINK href="images/default.css" type="text/css" rel=stylesheet>
<SCRIPT src="js/jquery.min.js" type="text/javascript"></SCRIPT>
<SCRIPT type="text/javascript">
   function collapse_change(menucount) {
       $("#list_"+menucount).toggle() ;
}
</SCRIPT>
</HEAD>
<BODY topMargin=10>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><A href="<?php echo site_url("admin/info"); ?>" target="main">系统首页</A>&nbsp;»调单查询结果</TD>
        </TR></TBODY></TABLE>
      <BR>
            <TABLE class="tableborder" cellSpacing=0 cellPadding=0 width="100%"
border=0>
        <TBODY>
        <TR class="header">
          <TD colSpan=6>调单查询结果<A onClick="collapse_change(1)" href="javascript:void(0)"><IMG src="images/menu_reduce.gif" name="menuimg_b8e6f4fa493903c4" border=0 id=menuimg_b8e6f4fa493903c4 style="MARGIN-TOP: -12px; FLOAT: right; MARGIN-RIGHT: 8px"></A> </TD>
        </TR>
        <TBODY id=list_1>
        <TR>
          <TD width="250" class="altbg1"><b>调单号</b></TD>
          <TD  class="altbg1"><b>类型</b></TD>
          <TD width="80"class="altbg1" ><b>拟稿人</b></TD>
          <TD width="150" class="altbg1"><b>拟稿时间</b></TD>
          <TD width="80" class="altbg1" ><b>调单更新</b></TD>
          <TD width="80" class="altbg1" ><b>调单状态</b></TD>
        </TR>
        <?php
        if(isset($req))
        {
        	foreach ($req->result() as $row) :
        ?>
        <TR>
           <TD class=altbg2><a href="<?php echo site_url("main/download"."/".$row->id) ?>" target=""><img src="images/zip.gif" width="16" height="16"  border="0" /></a>&nbsp;<a title="点击可查看调单内容" href="<?php echo site_url("main/req_con") ."/". $row->id."/".$row->type_id; ?>" target="main"><?php echo $row->Requisition_ID  ?></a></TD>
           <TD class="altbg2">&nbsp;&nbsp;<?php echo $row->type ?></TD>
           <TD  class=altbg2><?php echo $row->Draft ?></TD>
           <TD class=altbg2><?php echo $row->update_time  ?></TD>
             <!--更新-->
           <TD STYLE="font-size:12px;color: FF0000;font-weight:bold;"><a title="点击可更新调单内容" href="<?php echo site_url("main/req_update") ."/". $row->id."/".$row->type_id; ?>" target="main"><img src="images/edt.gif" width="16" height="16"  border="0" />更新</a></TD>
              <!--归档-->
           <?php if($row->state==3): ?>
           <TD  class="altbg2">己归档</TD>
           <? else: ?>
             <TD STYLE="font-size:12px;color: FF0000;font-weight:bold;"><a href="<?php echo site_url("main/req_gd") ."/". $row->id; ?>"><img src="images/tb.gif"  border="0" />&nbsp;待归档</a> </TD>
          <?endif;?>
        <?php
        	endforeach;
        }
        ?>
       
        <TR>
          <TD colspan="6" class=altbg1>共查询到<? if(isset($total)){echo $total;}?>条记录。
          </TD>
        </TR>
       </TBODY></TABLE> 
     </TD>
     </TR>
    </TBODY>
   </TABLE><BR><BR>
   <BR><BR>
      <DIV class=footer>
        <HR width="80%" color=9db3c5 noShade SIZE=0>
         Powered by <? echo $copyright ?> <em>,</em> <B><A style="COLOR: 666" href="<? echo base_url() ?>" target="_blank"><? echo $version;?>.</A></B>
      </DIV>
</BODY></HTML>
